// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_FIN_ACCOUNTS
// * CreateDate    : 2012/2/2 10:17:12
// * Creater       : CodeSmith
// * LastChangeDate: 2012/2/2 10:17:12
// * LastChanger   : 2012/2/2 10:17:12
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class FinAccountsTable : TableInfo
    {
		public const string C_TableName = "FIN_ACCOUNTS";
		
		public const string C_ACCOUNTS_CODE = "ACCOUNTS_CODE";
		public const string C_ACCOUNTS_NAME = "ACCOUNTS_NAME";
        public const string C_PARENT_CODE = "PARENT_CODE";
        public const string C_ACCOUNTS_TYPE = "ACCOUNTS_TYPE";
		
		public FinAccountsTable()
        {
            _tableName = "FIN_ACCOUNTS";
        }
		
		protected static FinAccountsTable _current;
        public static FinAccountsTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new FinAccountsTable();

            _current.Add(C_ACCOUNTS_CODE, new ColumnInfo(C_ACCOUNTS_CODE,"AccountsCode", true, typeof(string)));
            _current.Add(C_ACCOUNTS_NAME, new ColumnInfo(C_ACCOUNTS_NAME,"AccountsName", false, typeof(string)));
            _current.Add(C_PARENT_CODE, new ColumnInfo(C_PARENT_CODE, "ParentCode", false, typeof(string)));
            _current.Add(C_ACCOUNTS_TYPE, new ColumnInfo(C_ACCOUNTS_TYPE, "AccountsType", false, typeof(string)));
			
		}
		
		public ColumnInfo ACCOUNTS_CODE
        {
            get { return this[C_ACCOUNTS_CODE]; }
        }
		
		public ColumnInfo ACCOUNTS_NAME
        {
            get { return this[C_ACCOUNTS_NAME]; }
        }
		
		public ColumnInfo PARENT_CODE
        {
            get { return this[C_PARENT_CODE]; }
        }

        public ColumnInfo ACCOUNTS_TYPE
        {
            get { return this[C_ACCOUNTS_TYPE]; }
        }
		
	}
}

